﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Web_ViewTrain : System.Web.UI.Page
{
    protected Train t;
    protected void Page_Load(object sender, EventArgs e)
    {

        CmsDataContext db = new CmsDataContext();

        string tid = Request.QueryString["tid"];
        t = (from aT in db.Train where aT.ID.Equals(tid) select aT).First(); 

        var px2 = (from aA in db.Article where aA.Verified != null orderby aA.Verified descending select aA).Take(6);
        Repeater3.DataSource = px2;
        Repeater3.DataBind();

    }
}